<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>vw-layout</title>
  <script>
    var isChrome = window.navigator.userAgent.indexOf('Chrome') > -1;
    var Firefox = window.navigator.userAgent.indexOf('Firefox') > -1;

    // alert("谷歌:"+isChrome+"火狐:"+Firefox);
    console.log(isChrome);
    if(!isChrome && !Firefox){
      alert("为保证体验，请使用谷歌或者火狐浏览器进行访问!");
    };

  </script>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
